//
//  UsersModel.m
//
//  Created by Felipe Navarro V. on 27-10-09.
//  Copyright deis 2009. All rights reserved.
//


#import "UsersModel.h"
#import "UsersResultsModel.h"

UsersResponseFormat CurrentUsersResponseFormat = UsersResponseFormatDefault;

id<UsersModel> CreateUsersModel(NSString* kind, NSString* method, int limit, NSString* user_id,  UsersResponseFormat responseFormat)
{
    id<UsersModel> model = nil;
	model = [[[UsersResultsModel alloc] initWithResponseFormat:responseFormat 
														  kind:kind 
														method:method 
														 limit:limit
													   user_id:user_id] autorelease];
    return model;
}

id<UsersModel> CreateUsersModelWithCurrentSettings(NSString* kind, NSString* method, int limit, NSString* user_id)
{
    return CreateUsersModel(kind, method, limit, user_id, CurrentUsersResponseFormat);
}